#三天休息一天
power = 1
study = 'a'
unstudy = 'b'
state = 'a'
temp = 0
for i in range (0, 365):
    if state == 'a' and (temp in [0, 1, 2, 4, 5, 6]):
                        power *= 1.01
                        temp = (temp +1 )% 7
    elif state == 'b' and (temp in [3]):
                        power *= power
                        temp = temp% 7
print("连续365天后能力值为{:.2f}".format(power))


#努力每天提升1%，休息每天下降1‰
dayup = 1
for i in range(365):
    if i % 4 in [0, 1, 2]:
        dayup = dayup* (1 + 0.01)
    else:
        dayup = dayup* (1 - 0.01)
print("连续学习365天后的能力值为{:.2f}".format(dayup))